﻿@model PagedList<NewsDetailView>
@{
    ViewData["Title"] = "新闻列表";
    var CateList = (ViewBag.CateList as List<ListItem>) ?? new List<ListItem>();
    var Cate = ViewBag.CateInfo as ListItem;
    var parentId = Cate == null ? null : (Cate.ParentId ?? Cate.Code);
    var hotNews = (ViewBag.HotNews as List<NewsDetailView>) ?? new List<NewsDetailView>();
    var childs = CateList.Where(w => w.Code == parentId).Select(u => u.Childs).FirstOrDefault();
    }

    @section HScripts{
<link href="/web/css/listpage.css" rel="stylesheet" />
}
<div class="left MarB20 search_720">
    <input name="ctl00$Content$hiddenCn" type="hidden" id="Content_hiddenCn">
    <div class="camTitle">
        <div class="camNavA">
            @foreach (var item in CateList)
            {
                <a href="/News/Index?nid=@item.Code" class="@(item.Selected ? "selected" : "")"> @item.Text</a>
                @*<a id="aa_1" href="news-1.html" class="selected">
                    文库公告
                </a>*@
            }
        </div>
    </div>
    <div class="longConCam">
        <ul class="renwu mb30">
            @foreach (var item in Model)
            {
                var itemUrl = Url.Action("Detail", "News", new { nid = item.Id });
                <li>
                    <p class="renwu_01">
                        <a target="_blank" href="@itemUrl" title="@item.Title">
                            @item.Title
                        </a>
                    </p>
                    <p class="renwu_02" style="float:right">
                        @item.CreatorTime.ToDateString()
                    </p>
                </li>
            }

        </ul>
        <!-- 分页信息 -->
        <partial name="_PagerPartial" model="Model" />
        <!-- 分页信息 end -->
    </div>
</div>

<div class="right MarB10 search_259">

    <div class="box download-rank bgF block" style="width: 257px;">
        <div class="boxHd">
            <h2 class="left font-normal font16 font-yahei" style="font-size: 15px; color: #666;">最新资源</h2>
        </div>
        <div class="first-second-third cl mt10" style="width: 228px; height: 250px; margin-top: 10px;">
            <dl class="jiaochengpaihang">
                @foreach (var item in hotNews)
                {
                    <dd>
                        <a target="_blank" href="@Url.Action("Detail", "News", new { nid = item.Id })" title="@item.Title">
                            @item.Title
                        </a>
                    </dd>
                }
            </dl>
        </div>
    </div>

    @*<div class=" mb10 txt-agn-cen">
        <div class="box download-rank bgF block" style="width: 260px;">
            <div class="boxHd">
                <h2 class="left font-normal font16 font-yahei" style="font-size: 15px; color: #666;">
                    精品推荐
                </h2>
            </div>
            <div class="first-second-third cl mt10" style=" height: 250px; margin-top: 10px;">


                <div style="height: 250px; margin: auto; overflow:hidden;
     text-align: center;">

                    <a target="_blank" href="/ADMiddle.aspx?t=tLXYhryTlEg=">

                        <img src="/FileUpload/Images/fba700a3-1844-4069-bfe7-160ada8c9950.jpg" width="250" height="250" alt="广告招租-6">

                    </a>
                </div>
            </div>
        </div>
    </div>*@
</div>

